package com.laicunba.pojo;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

/**
 * 现金券
 * 
 * @author why
 *
 */
@Component
@MyTable
public class CashCouponDO extends BaseDO {
	private String defId; // 定义ID
	private String userId;// 拥有的用户ID
	private String financingTargetBidId; // 投标ID
	private BigDecimal amount; // 面额
	private Date beginTime;// 开始时间
	private Date endTime;// 开始时间

	private BigDecimal usedAmount; // 使用掉的数量 , > 0则认为已使用过了

	private String conditions; // 使用条件
	private String name;
	private String summary;
	@MyColumn(type = "bool DEFAULT false")
	private boolean addProfit; // 到期算息

	public void setAddProfit(boolean addProfit) {
		this.addProfit = addProfit;
	}
	public boolean isAddProfit() {
		return addProfit;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getSummary() {
		return summary;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setConditions(String conditions) {
		this.conditions = conditions;
	}

	public String getConditions() {
		return conditions;
	}

	public String getDefId() {
		return defId;
	}

	public String getUserId() {
		return userId;
	}

	public String getFinancingTargetBidId() {
		return financingTargetBidId;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public BigDecimal getUsedAmount() {
		return usedAmount;
	}

	public void setDefId(String defId) {
		this.defId = defId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setFinancingTargetBidId(String financingTargetBidId) {
		this.financingTargetBidId = financingTargetBidId;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public void setUsedAmount(BigDecimal usedAmount) {
		this.usedAmount = usedAmount;
	}

}
